#region License
///License Begin
///This program has been developed by: Rodolfo Grave de Peralta, 
///Copyright (C) 2007 Rodolfo Grave de Peralta
///This program is free software; you can redistribute it and/or modify
///it under the terms of the GNU General Public License as published by
///the Free Software Foundation; either version 2 of the License, or
///(at your option) any later version.
///
///This program is distributed in the hope that it will be useful,
///but WITHOUT ANY WARRANTY; without even the implied warranty of
///MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
///GNU General Public License for more details.
///
///You should have received a copy of the GNU General Public License
///along with this program; if not, write to the Free Software
///Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
///License End
#endregion

using System;
using System.Collections.Generic;
using System.Text;

namespace TEAM.TimeTracking.Model
{
    public class ReportThisMonth : Report
    {

        protected override Predicate<object> CreateFilter_Internal()
        {
            return new Predicate<object>(
                            delegate(object item)
                            {
                                int month = DateTime.Now.Month;
                                TaskExecution tItem = item as TaskExecution;
                                bool result = false;
                                if (tItem != null)
                                {
                                    result = tItem.StartTime.Month == month;
                                }
                                return result;
                            });
        }

    }
}
